package com.ckzp.jfinal.weixin.util;

import com.ckzp.jfinal.weixin.model.WxService;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by 51594 on 2023/4/3.
 */
public class WxServiceUtil {

    public static WxServiceUtil n() {
        return new WxServiceUtil();
    }


    public Map getService() {
        Map m = new HashMap();
        List<WxService> list = WxService.dao.find("select * from wx_service where status=1");
        for (WxService service : list) {
            m.put(service.get("skey"), service.get("svalue"));
        }
        return m;
    }
}
